﻿Imports Dainfo.ControleEstoque.Dados
Imports Dainfo.ControleEstoque.Model

Partial Public Class Repeater
    Inherits System.Web.UI.Page

    Dim venda As New Venda()
    Dim dadosVenda As New DadosVenda()

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        


        GridView1.DataSource = dadosVenda.GetAll()
        GridView1.DataBind()

    End Sub

    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles GridView1.SelectedIndexChanged
        DetailsView1.DataSource = dadosVenda.GetAll()(GridView1.SelectedIndex).Itens
        DetailsView1.DataBind()
        GridView1.DataSource = dadosVenda.GetAll()
        GridView1.DataBind()
    End Sub

    Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles LinkButton1.Click

    End Sub
End Class